#include <ros/ros.h>
#include <turtlesim/Pose.h>

void poseCallback(const turtlesim::Pose::ConstPtr &msg)
{
    ROS_INFO("Turtle pose: x:%0.2f, y:%0.2f", msg->x, msg->y);
}

int main(int arg, char **args)
{
    ros::init(arg, args, "pose_subscriber");

    ros::NodeHandle node;

    ros::Subscriber pose_sub = node.subscribe("/turtle1/pose", 10, poseCallback);

    ros::spin();
    
    return 0;
}